class PlayerScene extends eui.Component implements eui.UIComponent {
	public listBox:eui.List;
	public scrollBox:eui.Scroller;
	public btn_return:eui.Button;
	public constructor() {
		super();
	}

	protected partAdded(partName: string, instance: any): void {
		super.partAdded(partName, instance);
	}


	protected childrenCreated(): void {
		super.childrenCreated();
		// 数据数组
		let dataArr:any[] = [
			{ image: "resource/art/profile/skillIcon01.png", name: "旋龙幻杀" },
			{ image: "resource/art/profile/skillIcon02.png", name: "魔魂天咒" },
			{ image: "resource/art/profile/skillIcon03.png", name: "天魔舞" },
			{ image: "resource/art/profile/skillIcon04.png", name: "痴情咒" },
			{ image: "resource/art/profile/skillIcon05.png", name: "无间寂" },
			{ image: "resource/art/profile/skillIcon06.png", name: "霸天戮杀" },
			{ image: "resource/art/profile/skillIcon07.png", name: "灭魂狂飙" }
		];
		// 把数据数组转成eui数组
		let EUIArr:eui.ArrayCollection = new eui.ArrayCollection(dataArr);
		// 把eui数组作为list是的数据源
		this.listBox.dataProvider = EUIArr;
		this.scrollBox.horizontalScrollBar.autoVisibility = false;

		// 返回按钮  返回到主场景
		this.btn_return.addEventListener(egret.TouchEvent.TOUCH_TAP,this.returnMain,this);
	}
	/**
	 * 返回主场景
	 */
	private returnMain(){
		SceneManager.toMainScene();
	}
		

	
}